#pragma once
#include "pgl/core/pgl.h"
#include "pgl/core/PGLInclude.h"
#include "pgl/mfc/PGLMFCInclude.h"
#include "pgl/core/PGLLine2D.h"

class CPGLMfcPoint:public CPGLLine2D
{
private:
	bool m_canMove;
	bool m_canLeftAndRightMove;
	double m_minX;
	double m_minY;
	bool m_bIsNuggest;
	int m_nVarioNo;
public:
	CPGLMfcPoint():m_canMove(true),m_canLeftAndRightMove(true),m_minX(-1),m_minY(-1)
	{
		m_bIsNuggest=false;
		m_nVarioNo=0;
	}
	void SetCanMove(bool canMove){m_canMove=canMove;}
	bool GetCanMove(){return m_canMove;}
	void SetCanLeftAndRightMove(bool canLeftAndRightMove)
	{
		if(m_canMove)
			m_canLeftAndRightMove=canLeftAndRightMove;
	}
	bool GetCanLeftAndRightMove(){return m_canLeftAndRightMove;}
	void SetMinX(double minX){m_minX=minX;}
	double GetMinX(){return m_minX;}
	void SetMinY(double minY){m_minY=minY;}
	double GetMinY(){return m_minY;}
	void SetIsNuggest(bool bIsNuggest) {m_bIsNuggest=bIsNuggest;}
	bool GetIsNuggest() {return m_bIsNuggest;}
	void SetVarioNo(int nVarioNo) {m_nVarioNo=nVarioNo;}
	int GetVarioNo() {return m_nVarioNo;}
};

PGL_DECLARE_SMARTPTR(CPGLMfcPoint);